:root {
  --gallery-bg: #c7d3ca;
  --radius: 18px;
  --gap-mobile: 8px;
  --gap-desktop: 4px;
}

/* SECTION */
.gallery-section {
  width: 100%;
  background: var(--gallery-bg);
  padding: 20px 0 30px;
}

.gallery-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.gallery-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  color: #f5f5f5;
  margin: 0 0 20px;
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* SLIDER */
.gallery-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* TRACK */
.gallery-track {
  display: flex;
  gap: var(--gap-mobile);
  transition: transform 0.35s ease;
  cursor: grab;
  padding: 0 10px;
  box-sizing: border-box;
  touch-action: pan-y;
}

.gallery-track.is-dragging {
  cursor: grabbing;
}

/* DEFAULT SLIDE */
.gallery-slide {
  position: relative;
  flex: 0 0 92%;
  height: 55vh;
  min-height: 260px;
  max-height: 720px;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}

/* DEFAULT MEDIA */
.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  display: block;
}

/* NORMAL IMAGES */
.gallery-slide img {
  object-fit: cover;
  object-position: center;
}

/* VIDEO */
.gallery-slide video {
  object-fit: cover;
  background: #000;
  pointer-events: auto;
}

/* PORTRAIT IMAGES */
.gallery-slide.portrait img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* BIRD VIEW */
.gallery-slide .img-bird {
  object-fit: contain !important;
  object-position: center !important;
  background: transparent;
}

/* NAV */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 6px;
}

.gallery-nav.next {
  right: 6px;
}

/* DOTS */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0 10px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
}

.gallery-dot.active {
  background: #fff;
}

/* TABLET */
@media (min-width: 768px) {
  .gallery-track {
    gap: 6px;
    padding: 0 6px;
  }

  .gallery-slide {
    flex: 0 0 80%;
    height: 60vh;
  }

  .gallery-slide.portrait {
    flex-basis: 68%;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .gallery-track {
    gap: var(--gap-desktop);
    padding: 0;
  }

  .gallery-slide {
    flex: 0 0 70%;
    height: 65vh;
  }

  .gallery-slide.portrait {
    flex-basis: 58%;
  }

  .gallery-slide:has(.img-bird) {
    flex-basis: 62%;
  }
}

/* LARGE DESKTOP */
@media (min-width: 1400px) {
  .gallery-track {
    gap: 2px;
  }

  .gallery-slide {
    flex: 0 0 65%;
    height: 70vh;
  }

  .gallery-slide.portrait {
    flex-basis: 52%;
  }

  .gallery-slide:has(.img-bird) {
    flex-basis: 58%;
  }
}